package com.way.demo.copybean;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author lipingwei
 * @create 2021-07-21 15:05
 */
@Getter
@Setter
@ToString
public class Student implements Cloneable, Serializable {
    private String name;
    private int idNo;

    @Override
    protected Object clone()  {
        Student student=null;
        try {
            student=(Student)super.clone();
            return student;
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
       return student;
    }
}
